const express = require('express')
const app = express()
const port = 3000

app.get('/', (req, res) => {
    res.redirect("/index01.html");
    //res.send('Hello World!');
})
//static 中的参数就是静态资源的文件夹
app.use(express.static("static"));
app.listen(port, () => console.log(`Example app listening on http://127.0.0.1:3000`))